<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			/* 面试题1
			var x = 10
			function fn(){
				console.log(x)
			}
			function show(f){
				var x = 20
				f()
			}
			show(fn)  // 10
			*/
			
			var fn = function(){
				console.log(fn)
			}
			fn()	// ƒ (){
					//	   console.log(fn)
					// }	
			
			var obj = {
				fn2 : function(){
					console.log(fn2)
				}
			}
			
			obj.fn2()  // fn2 is not defined
			
			var obj2 = {
				fn3 : function(){
					console.log(this.fn3)
				}
			}
			
			obj2.fn3()  // 
		</script>
	</head>
	<body>
	</body>
</html>
